import logging

import pytest
import yagmail

def log1():
    logging.basicConfig(filename="rizhi.log",
                        level=logging.DEBUG,
                        filemode='w+',
                        format='%(levelname)s' '%(message)s' '%(asctime)s' '%(filename)s' '%(lineno)d')
def youxian(file):
    email = yagmail.SMTP(user="2018675435@qq.com", password='nnqakcckuzyqfebd', host="smtp.qq.com",)
    email.send(to='2018675435@qq.com', subject='A3mall', contents='测试结果',attachments=file)









